<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

    <script>
        var user = {
            name:'Tom',
            age:18,
            jobs:['IT','BAIZHAN','Hello'],
            getName:function(){
                console.log(this.name)
            }
        }
        user.getName()

    </script>


</body>
</html>